package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum QttWBEnum {
    activate("android_activate", "0", "NO","NO"),
    register("android_register", "35", "2","1"),
    day1retention("android_day1retention", "6", "5","5"),
    ;

    private String productCode;

    private String qttCode;

    private String wifiCode;

    private String myWifiCode;


    QttWBEnum(String productCode, String qttCode, String wifiCode,String myWifiCode) {
        this.productCode = productCode;
        this.qttCode = qttCode;
        this.wifiCode = wifiCode;
        this.myWifiCode = myWifiCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getQttCode() {
        return qttCode;
    }

    public String getWifiCode() {
        return wifiCode;
    }
    public String getMyWifiCode() {
        return myWifiCode;
    }

    public static String getQttCode(String productCode) {
        QttWBEnum[] qttWBEnums = QttWBEnum.values();
        for (QttWBEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getQttCode();
            }
        }
        return null;
    }

    public static String getWifiCode(String productCode) {
        QttWBEnum[] qttWBEnums = QttWBEnum.values();
        for (QttWBEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getWifiCode();
            }
        }
        return null;
    }

    public static String getMyWifiCode(String productCode) {
        QttWBEnum[] qttWBEnums = QttWBEnum.values();
        for (QttWBEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getMyWifiCode();
            }
        }
        return null;
    }
}
